Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add vercel preview url step #3898

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

enesozturk
Copy link
Contributor

@enesozturk enesozturk commented Feb 21, 2025

Description

~12min cut from our GitHub E2E workflows: Added Vercel preview step to our workflow; it does await the Vercel preview to be built, then get the preview URL and uses it for the E2E tests

  • Previously we've been building & running the laboratory app in each testing shard: 5 shard x lab build (around 2.40m) = around 12min
  • Now, the Vercel preview is already built until the static type checks (lint, prettier etc), so almost no waiting for the preview in fact

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-xxx
For GH issues: closes #...

Showcase (Optional)

If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copy link

changeset-bot bot commented Feb 21, 2025

⚠️ No Changeset found

Latest commit: df3d61a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Feb 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
appkit-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 24, 2025 5:42am
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 24, 2025 5:42am
12 Skipped Deployments
Name Status Preview Comments Updated (UTC)
appkit-basic-ep ⬜️ Ignored (Inspect) Feb 24, 2025 5:42am
appkit-basic-ep-example ⬜️ Ignored (Inspect) Feb 24, 2025 5:42am
appkit-basic-example ⬜️ Ignored (Inspect) Feb 24, 2025 5:42am
appkit-basic-sign-client-example ⬜️ Ignored (Inspect) Feb 24, 2025 5:42am
appkit-basic-up-example ⬜️ Ignored (Inspect) Feb 24, 2025 5:42am
appkit-ethers5-bera ⬜️ Ignored (Inspect) Visit Preview Feb 24, 2025 5:42am
appkit-nansen-demo ⬜️ Ignored (Inspect) Feb 24, 2025 5:42am
appkit-vue-solana ⬜️ Ignored (Inspect) Feb 24, 2025 5:42am
appkit-wagmi-cdn-example ⬜️ Ignored (Inspect) Feb 24, 2025 5:42am
ethereum-provider-wagmi-example ⬜️ Ignored (Inspect) Visit Preview Feb 24, 2025 5:42am
next-wagmi-solana-bitcoin-example ⬜️ Ignored (Inspect) Visit Preview Feb 24, 2025 5:42am
vue-wagmi-example ⬜️ Ignored (Inspect) Feb 24, 2025 5:42am

Copy link
Contributor

github-actions bot commented Feb 21, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 72.25% 23234 / 32154
🔵 Statements 72.25% 23234 / 32154
🔵 Functions 62.26% 1868 / 3000
🔵 Branches 81.02% 4026 / 4969
File CoverageNo changed files found.
Generated in workflow #9758 for commit df3d61a by the Vitest Coverage Report Action

@@ -57,7 +57,6 @@ const SINGLE_ADAPTER_EVM_TESTS = [
'wallet-features.spec.ts',
'wallet.spec.ts',
'wallet-button.spec',
'verify.spec.ts',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert Canary and Verify tests back

Copy link
Contributor

Warnings
⚠️

Workflow file .github/workflows/ui_tests.yml has been modified

⚠️

File .github/workflows/ui_tests.yml contains a KEY or SECRET

⚠️ File apps/laboratory/tests/shared/pages/ModalPage.ts contains a KEY or SECRET
⚠️ File apps/laboratory/tests/siwe-email.spec.ts contains a KEY or SECRET
⚠️ File apps/laboratory/tests/siwe-sa.spec.ts contains a KEY or SECRET
⚠️ Testing spec changed

Generated by 🚫 dangerJS against df3d61a

env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
with:
deployment-url: appkit-lab.reown.com # TODO Replace by the domain you want to test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this ok?

Comment on lines +124 to +133
# Disable temporarily
# - name: Run canary with minimal environment config
# env:
# # DO NOT MODIFY THIS. If you are required to add variables here without adding
# # them to the rs-relay repo it will cause alarms.
# NEXT_PUBLIC_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_PROJECT_ID }}
# NEXTAUTH_SECRET: ${{ secrets.TESTS_NEXTAUTH_SECRET }}
# CI: true
# working-directory: ./apps/laboratory/
# run: pnpm playwright:test:canary
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why disable?

Comment on lines +368 to +374
await this.page.waitForTimeout(500)
}

async approveSign() {
await this.signatureRequestFrameShouldVisible('requests a signature')
await this.clickSignatureRequestButton('Sign')
await this.page.waitForTimeout(1000)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need these timeouts?

@tomiir tomiir added the Internal Internal change for CI/CD/Testing improvements label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal Internal change for CI/CD/Testing improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants